﻿Public Class Form7

    Private Sub Tbl_testBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs) Handles Tbl_testBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.Tbl_testBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.Test4DataSet)

    End Sub

    Private Sub Form7_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.Tbl_thuTableAdapter.Fill(Me.Test4DataSet.tbl_thu)
        Me.Tbl_testTableAdapter.Fill(Me.Test4DataSet.tbl_test)
        Me.Tbl_testIUltraGrid.setDoiTuongXuLyDuLieu(Me.Test4DataSet.tbl_test, Me.Tbl_testBindingSource, Me.Tbl_testTableAdapter, Me.Test4DataSet)
        Me.Tbl_testIUltraGrid.setGiaoDienVua()
        Dim ht As Hashtable = New Hashtable
        ht.Add("ma", "ma")
        ht.Add("ten", "ten")
        Me.Tbl_thuIUltraDropDown.setGiaoDien()
        Me.Tbl_testIUltraGrid.setThemIUltraDropDown(Me.Tbl_thuIUltraDropDown, Me.Test4DataSet.tbl_thu, ht)
        Me.Tbl_testIUltraGrid.setChoPhepThemDong()
        Me.Tbl_testIUltraGrid.setCapNhatDuLieuTucThoi()
        'Me.Tbl_thuIUltraGrid.setDoiTuongXuLyDuLieu(Me.Test4DataSet.tbl_thu, Me.Tbl_thuBindingSource1, Me.Tbl_thuTableAdapter, Me.Test4DataSet)
        'Me.Tbl_thuIUltraGrid.setGiaoDienVua()
        Me.Tbl_thuIUltraCombo.setGiaoDien()
        Me.Tbl_thuIUltraCombo.setDataTable(Me.Test4DataSet.tbl_thu)
        Me.Tbl_testIUltraGrid1.setDoiTuongXuLyDuLieu(Me.Test4DataSet.tbl_test, Me.Tbl_testBindingSource, Me.Tbl_testTableAdapter, Me.Test4DataSet)
        Me.Tbl_testIUltraGrid1.setGiaoDienVua()
        Me.Tbl_testIUltraGrid1.setChoPhepLuuXongKhongThemDong()
        Me.Tbl_testIUltraGrid1.setChoPhepMenuStrip()
        Me.Tbl_testIUltraGrid1.setThemIUltraDropDown(Me.Tbl_thuIUltraDropDown, Me.Test4DataSet.tbl_thu, ht)
        Me.Tbl_testIUltraGrid1.setUltraComboEditor(Me.UltraComboEditor1)
    End Sub

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        'Me.Tbl_testIUltraGrid.getLuu()

    End Sub
End Class